﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace RoboTrocity.Code.ObjectStates {
	class JumpState : StandState {

	    protected Vector2 airControl;

		public JumpState(Entity entity, Sprite newSprite)
			: base(entity, newSprite) {
		    airControl = new Vector2(1.5f, 0);
		}


		public override void Jump() {
		}

		public override void MoveLeft() {
			attachedEntity.applyForce(airControl * -1);
			attachedEntity.FacingLeft = true;
		}

		public override void MoveRight() {
			attachedEntity.applyForce(airControl);
			attachedEntity.FacingLeft = false;
		}
	}
}
